package com.haruhinav.Utils;

import org.springframework.beans.factory.annotation.Value;

/**
 * 常量类
 */
public class Constants {

    //发件人邮箱
    //@Value("${spring.mail.username}")
    public static final String SENDER = "xxxxx@qq.com";
    // 上传文件相对路径
    public static final String UPLOAD_FILE_RELATIVE_URL = "/src/main/resources/static/upload/";
    // 上传图片压缩后图片的相对路径
    public static final String UPLOAD_FILE_RESIZE_RELATIVE_URL = "/src/main/resources/static/upload/resize/";
    // 部署linux后相对路径
    public static final String UPLOAD_LINUX_FILE_RELATIVE_URL = "/upload/";
    // 部署linux后相对路径
    public static final String UPLOAD_LINUX_FILE_RESIZE_RELATIVE_URL = "/upload/resize/";
    // 允许上传的壁纸文件后缀
    public static final String[] WALLPAPER_IMAGE_SUFFIX = {"jpg","png","jpeg","jpe","bmp"};
    // 百度搜索的api
    public static final String BAIDU_SEARCH_API = "https://www.baidu.com/sugrec?pre=1&p=3&ie=utf-8&json=1&prod=pc&from=pc_web&wd=";
    // bing 搜索 api  &bq= &qry=
    public static final String BING_SEARCH_API = "https://cn.bing.com/AS/Suggestions?pt=page.serp&mkt=zh-cn&ds=mobileweb&cp=2&css=1&zis=1&msbqf=false&cvid=64E88A222A0E449283C3B049C3E07026";
    // 百度 搜索
    public static final String BAIDU_SEARCH_ENGINE = "baidu";
    // bing 搜索
    public static final String BING_SEARCH_ENGINE = "bing";
}
